package com.gxcc3.ygps.common.core.domain;


import java.util.List;

public class ExcelColumn {

    //检测表头
    private String columnName;

    //检测列对应参数名
    private String paramName;

    private ColumnType columnType;

    private boolean required;

    private List<ExcelColumnSelect> columnSelect;


    public ExcelColumn() {
    }


    public ExcelColumn(String columnName, String paramName, ColumnType columnType, boolean required) {
        this.columnName = columnName;
        this.paramName = paramName;
        this.columnType = columnType;
        this.required = required;
    }

    public ExcelColumn(String columnName, String paramName, ColumnType columnType, boolean required, List<ExcelColumnSelect> columnSelect) {
        this.columnName = columnName;
        this.paramName = paramName;
        this.columnType = columnType;
        this.required = required;
        this.columnSelect = columnSelect;
    }

    public enum ColumnType {
        STRING, DATE, SELECT;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public ColumnType getColumnType() {
        return columnType;
    }

    public void setColumnType(ColumnType columnType) {
        this.columnType = columnType;
    }

    public boolean isRequired() {
        return required;
    }

    public void setRequired(boolean required) {
        this.required = required;
    }

    public List<ExcelColumnSelect> getColumnSelect() {
        return columnSelect;
    }

    public void setColumnSelect(List<ExcelColumnSelect> columnSelect) {
        this.columnSelect = columnSelect;
    }
}
